﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace BusinessModel
{
    public class SaleOrder : BaseModel
    {
        #region Primitive Properties
        public Nullable<global::System.Int32> SalerId
        {
            get
            {
                return _SalerId;
            }
            set
            {
                _SalerId = value;
                OnPropertyChanged("SalerId");
            }
        }
        private Nullable<global::System.Int32> _SalerId;

        public global::System.String SalerUsername
        {
            get
            {
                return _SalerUsername;
            }
            set
            {
                _SalerUsername = value;
                OnPropertyChanged("SalerUsername");
            }
        }
        private global::System.String _SalerUsername;
        #endregion
        //SaleOrderDetails
        private IList<SaleOrderDetail> _SaleOrderDetails;
        public IList<SaleOrderDetail> SaleOrderDetails
        {
            get
            {
                if (_SaleOrderDetails == null)
                    _SaleOrderDetails = new List<SaleOrderDetail>();
                return _SaleOrderDetails;
            }
            set
            {
                _SaleOrderDetails = value;
                OnPropertyChanged("SaleOrderDetails");
            }
        }
        #region Extend Properties
        //UserName
        private string _UserName;
        public string UserName
        {
            get { return _UserName; }
            set
            {
                _UserName = value;
                OnPropertyChanged("UserName");
            }
        }
        #endregion Extend Properties
    }
}
